package com.ruoyi.project.modules.page.domain;

import com.ruoyi.project.modules.fileInfo.domain.FileInf;
import com.ruoyi.project.modules.interfaceinfo.domain.InterfaceInfo;
import com.ruoyi.project.modules.userDataAuth.domain.UserDataAuth;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.List;
import java.util.Set;

/**
 * 页面对象 t_page
 * 
 * @author smallrain
 * @date 2021-11-06
 */
public class Page extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 页面ID */
    private Long id;

    /** 页面名称 */
    @Excel(name = "页面名称")
    private String pageName;

    /** 页面描述 */
    @Excel(name = "页面描述")
    private String pageDescription;

    /** 页面层级 */
    @Excel(name = "页面层级")
    private String pageLevel;

    /** 是否模块聚合页（Y是 N否） */
    @Excel(name = "是否模块聚合页", readConverterExp = "Y=是,N=否")
    private String isModuleAggregation;

    /** 是否风险点（Y是 N否） */
    @Excel(name = "是否风险点", readConverterExp = "Y=是,N=否")
    private String isRask;

    /** 终端类型（1PCweb 2H5 3APP 4微信小程序） */
    @Excel(name = "终端类型", readConverterExp = "1=PCweb,2=H5,3=APP,4=微信小程序")
    private String terminalType;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 分类名称 */
    private String categoryName;

    /** 分类编码 */
    private String categoryCode;

    /** 角色状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private List<Long> interfaceIds;

    private List<InterfaceInfo> interfaceList;

    private Set<Long> pageIds;

    /** 文件列表 */
    private List<FileInf> fileInfList;

    /** 组件文件 */
    private List<FileInf> componentFileInfList;

    private int flag = 0;

    /** 开发人id */
    private Long userId;

    /** 开发人员列表 */
    private List<UserDataAuth> userList;

    /** 普通图片 2. 组件图 */
    private String imgType;

    private Integer sortNum;

    private List<Long> productIds;

    private Boolean handlePower;

    private Integer objectStatus;

    private Long productVersionId;

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public List<Long> getProductIds() {
        return productIds;
    }

    public void setProductIds(List<Long> productIds) {
        this.productIds = productIds;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public List<FileInf> getComponentFileInfList() {
        return componentFileInfList;
    }

    public void setComponentFileInfList(List<FileInf> componentFileInfList) {
        this.componentFileInfList = componentFileInfList;
    }

    public String getImgType() {
        return imgType;
    }

    public void setImgType(String imgType) {
        this.imgType = imgType;
    }

    public List<FileInf> getFileInfList() {
        return fileInfList;
    }

    public void setFileInfList(List<FileInf> fileInfList) {
        this.fileInfList = fileInfList;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public Set<Long> getPageIds() {
        return pageIds;
    }

    public void setPageIds(Set<Long> pageIds) {
        this.pageIds = pageIds;
    }

    public List<Long> getInterfaceIds() {
        return interfaceIds;
    }

    public void setInterfaceIds(List<Long> interfaceIds) {
        this.interfaceIds = interfaceIds;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Long getId()
    {
        return id;
    }
    public void setPageName(String pageName) 
    {
        this.pageName = pageName;
    }

    public String getPageName() 
    {
        return pageName;
    }
    public void setPageDescription(String pageDescription) 
    {
        this.pageDescription = pageDescription;
    }

    public String getPageDescription() 
    {
        return pageDescription;
    }
    public void setPageLevel(String pageLevel) 
    {
        this.pageLevel = pageLevel;
    }

    public String getPageLevel() 
    {
        return pageLevel;
    }
    public void setIsModuleAggregation(String isModuleAggregation) 
    {
        this.isModuleAggregation = isModuleAggregation;
    }

    public String getIsModuleAggregation() 
    {
        return isModuleAggregation;
    }
    public void setIsRask(String isRask) 
    {
        this.isRask = isRask;
    }

    public String getIsRask() 
    {
        return isRask;
    }
    public void setTerminalType(String terminalType) 
    {
        this.terminalType = terminalType;
    }

    public String getTerminalType() 
    {
        return terminalType;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<InterfaceInfo> getInterfaceList() {
        return interfaceList;
    }

    public void setInterfaceList(List<InterfaceInfo> interfaceList) {
        this.interfaceList = interfaceList;
    }

    public List<UserDataAuth> getUserList() {
        return userList;
    }

    public void setUserList(List<UserDataAuth> userList) {
        this.userList = userList;
    }

    public Boolean getHandlePower() {
        return handlePower;
    }

    public void setHandlePower(Boolean handlePower) {
        this.handlePower = handlePower;
    }

    public Integer getObjectStatus() {
        return objectStatus;
    }

    public void setObjectStatus(Integer objectStatus) {
        this.objectStatus = objectStatus;
    }

    public Long getProductVersionId() {
        return productVersionId;
    }

    public void setProductVersionId(Long productVersionId) {
        this.productVersionId = productVersionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pageName", getPageName())
            .append("pageDescription", getPageDescription())
            .append("pageLevel", getPageLevel())
            .append("isModuleAggregation", getIsModuleAggregation())
            .append("isRask", getIsRask())
            .append("terminalType", getTerminalType())
            .append("categoryId", getCategoryId())
            .append("parentId", getParentId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
